<template>
  <uni-popup ref="popup">
    <Loading :title="title"></Loading>
  </uni-popup>
</template>

<script>
import Loading from "@/components/public/loading/loading";
import uniPopup from "@/components/uni-popup/uni-popup";
import { debounce } from "@/common/util";
export default {
  components: {
    Loading,
    uniPopup,
  },
  props: {
    title: {
      default: "加载中",
    },
  },
  methods: {
    open() {
      this.$refs.popup && this.$refs.popup.open();
    },
    close() {
      console.log("close");
      this.$refs.popup && this.$refs.popup.close();
    },
  },
};
</script>

<style lang="stylus" scoped></style>